/*
     Copyright (C) 2014 Apple Inc. All Rights Reserved.
     See LICENSE.txt for this sample’s licensing information
     
     Abstract:
     
                 A UIDocument subclass that represents a list. It mainly manages the serialization / deserialization of the list object.
             
 */

@import UIKit;

@class AAPLList;
@class AAPLListDocument;

// Protocol that allows a list document to notify other objects of it being deleted.
@protocol AAPLListDocumentDelegate <NSObject>
- (void)listDocumentWasDeleted:(AAPLListDocument *)document;
@end

@interface AAPLListDocument : UIDocument

@property (strong) AAPLList *list;
@property (weak) id<AAPLListDocumentDelegate> delegate;

@end

